/*
 * Employee.java
 *
 * This class is an abstract base class that contains an instance variable
 * to store the name of the employee, and an abstract method.
 *
 * 
 */

package com.javacore.day6.maxsoft3;

/**
 * Employee class that act as the base class for other classes.
 * @author 
 */
public abstract class Employee {
    
    /**
     * Creates a new instance of Employee
     */
    Employee() {
    }
    
    /**
     * Creates a new instance of class Employee and stores name
     * in the instance variable.
     * @param name Parameter containing the name of the employee
     */
    public Employee(String name) {
        
        this.name = name;
    }
    
    /**
     * Abstract Method to display the name.
     */
    abstract void displayDetails();
    
    /**
     * Instance variable to store the employee's name.
     */
    String name;
}
